<template>
<p>登录页</p>
<p>账号：</p>
<el-input v-model="zhanghao"></el-input>
<el-input v-model="mima" type="password"></el-input>
<button @click="denglu">登录</button>
</template>
<script setup>
import { ref } from 'vue';

const zhanghao =ref()
const mima=ref('')
const denglu =()=>{
    if(zhanghao.value==123456&&(mima.value==654321)){
        alert('登录成功')
    }else{
        alert('账号或密码错误请重新输入')
    }
}
</script>